package cn.shop.dys.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import cn.shop.dys.R;
import cn.shop.dys.activity.AboutActivity;
import cn.shop.dys.activity.UserAgainstActivity;
import cn.shop.dys.activity.moreHelpCenter;


/**
 * 首页
 */
public class FourFragment extends BaseFragment implements View.OnClickListener {

    @Override
    public View createView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_four,null);
        RelativeLayout lljl = (RelativeLayout) view.findViewById(R.id.rl_lljl);
        RelativeLayout bzzx = (RelativeLayout) view.findViewById(R.id.rl_bzzx);
        RelativeLayout yhfc = (RelativeLayout) view.findViewById(R.id.rl_yhfc);
        RelativeLayout gy = (RelativeLayout) view.findViewById(R.id.rl_gy);
        lljl.setOnClickListener(this);
        bzzx.setOnClickListener(this);
        gy.setOnClickListener(this);
        yhfc.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.rl_lljl:

                break;
            case R.id.rl_bzzx:
                startActivity(new Intent(mContext, moreHelpCenter.class));
                break;
            case R.id.rl_yhfc:
                startActivity(new Intent(mContext, UserAgainstActivity.class));
                break;
            case R.id.rl_gy:
                startActivity(new Intent(mContext, AboutActivity.class));
                break;
        }

    }
}
